#ifndef CENTRALDIRECTORY_H
#define	CENTRALDIRECTORY_H

struct CentralDirectory
{
    FileHeader* header;
    unsigned short versionMadeBy_;
    unsigned short commentLenght_;
    unsigned short diskStart_;
    unsigned short intAttr_;
    unsigned int extAttr_;
    unsigned int offset_;
    char* comments_;

    CentralDirectory(FileHeader* header)
    {
        this->header = header;
    }

    ~CentralDirectory()
    {
        if (this->header)
            delete this->header;
        if (this->comments_)
            delete this->comments_;
    }
};

#endif	/* CENTRALDIRECTORY_H */